package ink.tiptop.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Api("网页跳转API")
@Controller
@Slf4j
@RequestMapping("/")
public class JumpController {

    @ApiOperation("跳转到主页")
    @RequestMapping(path = {"/","/index"})
    public String index() {
        return "index";
    }

    @ApiOperation("跳转到登录页面")
    @RequestMapping("/login")
    public String login() {
        return "home/login";
    }

    @ApiOperation("修改密码页面")
    @RequestMapping("/changePass")
    public String changePass() {
        return "auth/changePass";
    }

    @ApiOperation("服务器基本配置页面")
    @RequestMapping("/base/server")
    public String configServer() {
        return "base/server";
    }
    @ApiOperation("服务器公钥配置页面")
    @RequestMapping("/key/key")
    public String configPubkey() {
        return "key/key";
    }
    @ApiOperation("用户版本页面")
    @RequestMapping("/version/version")
    public String configVersion() {
        return "version/version";
    }
    @ApiOperation("本地模块页面")
    @RequestMapping("/local/module")
    public String configLocalModule() {
        return "local/module";
    }
    @ApiOperation("本地视图页面")
    @RequestMapping("/local/view")
    public String configLocalView() {
        return "local/view";
    }
    @ApiOperation("远程服务页面")
    @RequestMapping("/remote/service")
    public String configRemoteService() {
        return "remote/service";
    }
    @ApiOperation("发布服务页面")
    @RequestMapping("/remote/publish")
    public String configRemotePublish() {
        return "remote/publish";
    }

}
